const jwt = require('jsonwebtoken');
const secrectKey = 'login2024'

const expiresIn ='7 days'

const generateToken = (user) => {
  const token = jwt.sign({ user }, secrectKey,{expiresIn});
  return token;
};

module.exports = {
  generateToken,
};